package com.prs.crm.domain.receipt;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.Attachment;
import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.flow.WorkFlow;
import com.prs.crm.domain.hr.Person;
/**
 * @author 廖苹宏
 * @version 2012-5-23 9:15:26 收文模板
 * */
@Entity
@Table(name="re_receiptregister")
public class ReceiptRegister extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String type;//重要级别
	private String applyName; //主题
	private Date dataTime;    //收文日期
	private String state;//状态
	private String number;//来文编号
	private String suggest;//份数
	private String acce;//附件
	private String office;//来文机关
	private String wordNum;//来文字号
	private String title;//来文标题
	private String flow;//正在进行的流程
	@ManyToOne(fetch=FetchType.LAZY)
	@Cascade({org.hibernate.annotations.CascadeType.ALL,org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
	private Attachment attach;
            
	private String receiptMoudle;
	@ManyToOne
	private Person person;         //创建人
	
	private String issueTime;//分发时间
	private String readyPerson;//阅读人
	private String readyPersonId;//阅读人 Id;
	private String isReady;//是否阅读
	private String readyIdea;//阅读意见
	private String filing;//归档
	
	private Integer appState;//审批状态
	private String showState;//显示状态
	@ManyToOne
	private WorkFlow workFlow;
	private Integer oabox;
	private String personAppProcess;
	private Integer personAppState;
	private String alreadyreadPerson;
	private String showReady;
	private String jkState;
	public String getReceiptMoudle() {
		return receiptMoudle;
	}
	public void setReceiptMoudle(String receiptMoudle) {
		this.receiptMoudle = receiptMoudle;
	}
	public String getJkState() {
		return jkState;
	}
	public void setJkState(String jkState) {
		this.jkState = jkState;
	}
	public String getShowReady() {
		return showReady;
	}
	public void setShowReady(String showReady) {
		this.showReady = showReady;
	}
	public String getAlreadyreadPerson() {
		return alreadyreadPerson;
	}
	public void setAlreadyreadPerson(String alreadyreadPerson) {
		this.alreadyreadPerson = alreadyreadPerson;
	}
	public String getPersonAppProcess() {
		return personAppProcess;
	}
	public void setPersonAppProcess(String personAppProcess) {
		this.personAppProcess = personAppProcess;
	}
	public Integer getPersonAppState() {
		return personAppState;
	}
	public void setPersonAppState(Integer personAppState) {
		this.personAppState = personAppState;
	}
	public Integer getOabox() {
		return oabox;
	}
	public void setOabox(Integer oabox) {
		this.oabox = oabox;
	}
	public Integer getAppState() {
		return appState;
	}
	public void setAppState(Integer appState) {
		this.appState = appState;
	}
	public String getShowState() {
		return showState;
	}
	public void setShowState(String showState) {
		this.showState = showState;
	}
	public WorkFlow getWorkFlow() {
		return workFlow;
	}
	public void setWorkFlow(WorkFlow workFlow) {
		this.workFlow = workFlow;
	}
	public String getFiling() {
		return filing;
	}
	public void setFiling(String filing) {
		this.filing = filing;
	}


	public String getIssueTime() {
		return issueTime;
	}

	public void setIssueTime(String issueTime) {
		this.issueTime = issueTime;
	}

	public String getReadyPerson() {
		return readyPerson;
	}

	public void setReadyPerson(String readyPerson) {
		this.readyPerson = readyPerson;
	}

	public String getReadyPersonId() {
		return readyPersonId;
	}

	public void setReadyPersonId(String readyPersonId) {
		this.readyPersonId = readyPersonId;
	}

	public String getIsReady() {
		return isReady;
	}

	public void setIsReady(String isReady) {
		this.isReady = isReady;
	}

	public String getReadyIdea() {
		return readyIdea;
	}

	public void setReadyIdea(String readyIdea) {
		this.readyIdea = readyIdea;
	}

	public String getFlow() {
		return flow;
	}

	public void setFlow(String flow) {
		this.flow = flow;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getApplyName() {
		return applyName;
	}

	public void setApplyName(String applyName) {
		this.applyName = applyName;
	}
	
	public Date getDataTime() {
		return dataTime;
	}

	public void setDataTime(Date dataTime) {
		this.dataTime = dataTime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getSuggest() {
		return suggest;
	}

	public void setSuggest(String suggest) {
		this.suggest = suggest;
	}

	public String getAcce() {
		return acce;
	}

	public void setAcce(String acce) {
		this.acce = acce;
	}

	public String getOffice() {
		return office;
	}

	public void setOffice(String office) {
		this.office = office;
	}

	public String getWordNum() {
		return wordNum;
	}

	public void setWordNum(String wordNum) {
		this.wordNum = wordNum;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Attachment getAttach() {
		return attach;
	}

	public void setAttach(Attachment attach) {
		this.attach = attach;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson(Person person) {
		this.person = person;
	} 
	
}
